<?php
/*
 * @Author: zwx
 * @Date: 2024-05-30 12:05:58
 * @LastEditors: zwx
 * @LastEditTime: 2024-07-22 22:11:19
 * @Description: 
 */
declare(strict_types=1);

namespace app\apiadmin\command;

use app\apiadmin\controller\behavior\Invitation;
use app\apiadmin\controller\liveManager\LiveStatus;
use app\apiadmin\service\invitation\InvitationService;
use app\apiadmin\service\TCSS\TImService;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\facade\Db;

class shuashu extends Command
{

    protected function configure()
    {
        // 命令的名称及用途描述
        $this->setName('shuashu')->setDescription('邀约到课');
    }

    protected function execute(Input $input, Output $output)
    {
        // 你的后台运行代码
        $output->writeln("shuashu");
        // 这里可以放置你的长时间运行的代码

        self::shuashu();

        // $ls = new LiveStatus(1);
        // $liveId = $ls->set_dabiaoqian_live(200);

    }



    /**
     * @author: zwx
     * @Description: 
     * @Date: 2024-07-22 22:03:00
     */
    public function shuashu()
    {
        $liveId = 223;
        $session = 1;
        $unionId = ['ogn1qw54G_pK-KbwKd7SUFZFqxYo', 'ogn1qw0g8dJ1PTxFgR4_DK3hpUZI', 'ogn1qww02V-oTNoh0DbKGx3B4Me0', 'ogn1qwwqWjx7M9uvVFQBz439B9gc', 'ogn1qwzfghtvYCsLFNUlQ-wdiQrs', 'ogn1qw1GRe6_vF0ejuI6AUMUVXBY', 'ogn1qw8alNm856jCVuk6-5ZLo4Lc', 'ogn1qwzgpHlc1esZ6eyyT-OynHdM', 'ogn1qw5i4cNyKWK2jttCB5ZPmgrg', 'ogn1qwz6wqHYCIleCDXPLIVf9hSU', 'ogn1qw5jqshSGtBIPlbubt2u8__w', 'ogn1qw7yFQNYSbMR4Ps3ojZjgR20', 'ogn1qw-6L3UoHjqnkhz7JJUSCdn4', 'ogn1qw3XgBEJDJxWgJ96-vl0b27A', 'ogn1qw-qOTFKzy5bAnBaKoIysqzc', 'ogn1qw79DxwZRBUofDyGN30Wb-DE', 'ogn1qw23fwNEsHnKkgu4oQ5TNEnA', 'ogn1q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w5nO1vyTwgcGcQe6OckGsO8', 'ogn1qwwQ51XsD8meM4ogUC-3xec4', 'ogn1qw-DPQcLKVaaM7RH4_Fc2Fcw', 'ogn1qw4owLsUm88u7BqJkcEWDcqs', 'ogn1qwzEIrPWgh9j0DLi_G1zWLHQ'];

        $where = [];
        $where[] = ['wx_union_id', 'in', $unionId];
        $where[] = ['pay_state', '=', 1];
        $where[] = ['del', '=', 0];
        $where[] = ['is_association_siyu', '=', 0];
        $where[] = ['pay_time', '<', date('Y-m-d H:i:s')];
        $where[] = ['pingtai', 'IN', [1, 2, 4, 6]];
        $orderArray = Db::table('xh_order_1')->where($where)->field('id,wx_union_id');

        foreach ($orderArray as $value) {
            if (!empty($unionId)) {
                self::getLiveOrderState($liveId, $session, $value['id'], 2, $value['wx_union_id']);
            }
        }
    }

    /**
     * 直播订单状态更改   刷数据专用  2024年7月22日21:58:05
     * @param $liveId   '直播间id'
     * @param $session  '场次'
     * @param $orderId  '公域订单id'
     * @param $type     '当前状态 0：无、1:邀约、2:到课、3:成交'
     * @param $unionId  '用户union_id'
     * @param $tutorId  '邀请人id'
     * @param $siyuId   '私域订单id'
     * @param $money    '成交金额'
     * @return bool|string
     * @author cc
     */
    public static function getLiveOrderState($liveId, $session, $orderId, $type, $unionId = '', $tutorId = '', $siyuId = '', $money = '')
    {

        try {
            $orderInfo = Db::table('xh_order_1')->where('id', $orderId)->find();
            if (!$orderInfo) {
                throw new \Exception("订单不存在!");
            }
            $date = date('Y-m-d H:i:s');
            $data = [];
            switch ($type) {
                case 1:
                    $data = [
                        'new_yaoyue_tag' => 1,
                        'new_yaoyue_tag_time' => $date,
                    ];
                    break;
                case 2:
                    $data = [
                        'new_daoke_tag' => 1,
                        'new_daoke_tag_time' => $date,
                    ];
                    break;
                case 3:
                    $data = [
                        'new_chengjiao_tag' => 1,
                        'new_chengjiao_tag_time' => $date,
                    ];
                    break;
                default:
                    break;
            }

            if ($type != 0 && !empty($data)) {
                // 修改 order_1 订单状态
                Db::table('xh_order_1')->where('id', $orderId)->update($data);
            }

            // 新增/修改 直播订单状态
            $orderLiveDetail = Db::table('xh_order_live_detail')->where(['order_id' => $orderInfo['id'], 'live_id' => $liveId, 'session' => $session])->find();
            if (!$orderLiveDetail) {
                if ($type == 1) {
                    $data = [
                        'order_id' => $orderInfo['id'],
                        'live_id' => $liveId,
                        'session' => $session,
                        'type' => $type,
                        'del' => 0,
                        'time' => $date,
                    ];
                    Db::table('xh_order_live_detail')->insert($data);
                }
            } else {
                Db::table('xh_order_live_detail')->where('id', $orderLiveDetail['id'])->update(['type' => $type]);
            }

            return true;
        } catch (\PDOException $e) {
            throw $e;
        }
    }



}